package com.stefan.framework;

import com.stefan.framework.protocol.URL;

import java.util.List;
import java.util.Random;

public class LoadBalancer {
    public static URL random(List<URL> list) {
        Random random =new Random();
        int n = random.nextInt(list.size());
        return list.get(n);
    }
}
